package com.ray.lambda;

import java.util.Arrays;

public class test {
    public static void main(String[] args) {
        Arrays.asList("a", "b", "d").forEach(e -> System.out.println(e));

        person p = new person() {
            @Override
            public void say() {
                System.out.println("hello");
            }
        };
        p.say();

        person p2 = ()-> System.out.println("22");
        p2.say();


        new Thread(()->
            System.out.println("333")
        ).start();

    }
}
